# -*- coding: utf-8 -*-

from socket import socket
from selectors import DefaultSelector, EVENT_READ, EVENT_WRITE


def browser(path):
    sock = socket()
    request = f'GET {path} HTTP/1.0\r\n\r\n\r\n'
    sock.send(request)
    response = r''
    buffer = sock.recv(1024)
    while buffer:
        response += buffer
        buffer = sock.recv(1024)
        pass
    return request


if __name__ == '__main__':
    pass
